const Router = require("@koa/router");
const router = new Router();

router.get("/", async (ctx) => {
  await ctx.render("index", {
    title: "Hello World", // 这里的 title 和 message 变量会被传递到 'index' 模板中
    message: "Welcome to Koa and EJS!",
  });
});

module.exports = router;
